//
//  LS_EmoticonPageCell.swift
//  EmoticonKeyboard
//
//  Created by 罗李苏 on 16/5/30.
//  Copyright © 2016年 Apple. All rights reserved.
//

import UIKit

class LS_EmoticonPageCell: UICollectionViewCell {
    
    //给Label 设置数据 测试使用
     var indexPath: NSIndexPath?{
        didSet{
           testLabel.text = "第\(indexPath?.section ?? 0)组,第\(indexPath?.item ?? 0)个cell"
        }
           }
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    private func setupUI(){
        contentView.addSubview(testLabel)
        //设置约束
        testLabel.snp_makeConstraints { (make) in
            make.center.equalTo(contentView.snp_center)
        }
    }
    //懒加载子控件 测试用的Label
    private lazy var testLabel: UILabel = {
        let l = UILabel()
        l.font = UIFont.systemFontOfSize(20)
        l.sizeToFit()
        return l
    }()
}
